package com.qing.common_result.result;


//状态码枚举
public enum ResultCode implements CommonEnum {
	SUCCESS(20000, "success"),
	PAGE_NOT_FOUND(40000, "接口不存在"),
	UNKNOWN_EXCEPTION(5000, "操作失败"),
	INFO_EXISTS(1002, "内容已存在"),
	USER_NOT_LOGIN(1000, "用户未登录");

	private Integer code;

	private String message;

	ResultCode(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	@Override
	public CommonEnum setErrorMsg(String errorMsg) {
		this.message = errorMsg;
		return this;
	}


}
